<?php

namespace Apps\AppApi;

use PhalconPlus\Common\BaseModule;
use PhalconPlus\Api\Common\HandleApiBase;
use Phalcon\Mvc\ModuleDefinitionInterface;
use PhalconPlus\Api\Common\ResultStatus;


class Module extends BaseModule implements ModuleDefinitionInterface
{
    const DIR = __DIR__;
    /**
     * Registers the module-only services
     * @param \Phalcon\DiInterface $di
     */
    public function registerServices(\Phalcon\DiInterface $di)
    {
    	parent::registerServices($di);
    	$config = $this->config;

    	$di['apiConfig'] = function() use ($config) {
    		return $config->api;
    	};

    }

}
